BlogArchive Server Control

The BlogArchive server control displays past months or years that have blog posts. This server control can be used with the BlogEntries server control and the Calendar control to let site users scan for older Blog posts.

When a site visitor clicks a month in the archive, the blog posts for that month appear.

Typically this control is displayed along side other individual Blog server controls. See Also: Using Blog Server Control vs. Individual Blog Controls

BlogArchive Server Control Properties

The following table explains the properties of the BlogArchive control.

Note: The following table only lists Ektron-specific properties. It does not describe native .NET properties such as font, height, width and border style. For documentation of these properties, see Visual Studio help.

Property

Value

Data Type

ArchiveMode

Select whether the archive appears in month format or year format. The default is month.

String

Authenticated

Indicates if you are logged in to the CMS Explorer and can use it to browse to Content, Collections, etc. See Also: Using CMS Explorer to Browse Your Ektron CMS400.NET Site

String

BlogID

The ID of the blog in Ektron CMS400.NET. For example: 41.

If you don’t know the ID of the blog, use the CMS Explorer to browse to it. See Also: Using CMS Explorer to Browse Your Ektron CMS400.NET Site

Long

CacheInterval

Sets the amount of time the server control’s data is cached. The default is 0 (zero). This is the amount of time, in seconds, a control’s data is cached. For example, if you want to cache the data for five minutes, set this property to 300 (three hundred). See Also: Caching with Server Controls

Double

 

DoInitFill

By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, FIll is automatically called during the Page Render event.

You might do this if you need to set or change a property on the control in codebehind and have it render with your changes shown.

Boolean

Hide

Used to hide the control in design time and run time.

True = Hide the control

False = Show the control

Boolean

DynamicParameter

Sets the QueryString parameter to read a Blog ID dynamically. Leave blank to always display the default blog.

String

Language

Set a language for viewing the Blog’s archive. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).

Integer

SuppressWrapperTags

Suppresses the output of the span/div tags around the control. The default is False.

True - Suppress wrap tags.

False - Allow wrap tags.

Boolean

WrapTag

Allows a developer to specify a server control’s tag.

The default is Span.

Span - The <span> tag is used to designate an in-line portion of an HTML document as a span element.

Div - The <div> tag is used when you want to apply attributes to a block of code.

Custom - Allows you to use a custom tag.

String

Previous TopicNext Topic|